import { CHANGE_TAB_INDEX } from "../mutation-type.js"

const tabBar = {
    namespaced: true,
    state: () => ({
        activeTabIndex: 0,
    }),
    mutations: {
        [CHANGE_TAB_INDEX](state, index) {
            state.activeTabIndex = index
        },
    },
}

export default tabBar
